package org.graduation.model.common.project;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;

@Data
@TableName("phase")
public class Phase {
    @JsonSerialize(using = ToStringSerializer.class)
    @TableId(type = IdType.ASSIGN_ID)
    private Long phaseId;
    @JsonSerialize(using = ToStringSerializer.class)
    private Long pId;
    private String name;

    public void setPId(Long pId) {
        this.pId = pId;
    }

    public void setpId(Long pId) {
        setPId(pId);
    }
}
